package ua.kharkov.gritsay.frame;

import javax.swing.JFrame;
import javax.swing.SwingUtilities;

public class Frame {


	public static void main(String[] args) {
		
		final int widht = 500;
		final int height = 400;
		SwingUtilities.invokeLater(new Runnable() {
			
			@Override
			public void run() {
				JFrame frame = new MainFrame("Hello my word!");
				frame.setSize(widht, height);
				frame.setVisible(true);
				frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
				frame.setLocationRelativeTo(null);
				
			}
		});
	}

}
